import request from '@/utils/request'

export const setFileAdd = (data:any) => {
	return request({
	    url:'/system/file/add/data',
	    method:'post',
	    data:data
	})
}

export const setFileDel = (data:any) => {
	return request({
	    url:`/system/file/del/data?id=${data.id}`,
	    method:'post'
	})
}

export const getFiles = (data:any) => {
	return request({
	    url:'/system/file/get/data',
	    method:'post',
	    data:data
	})
}

export const getFileUrl = (data:any) => {
	return request({
	    url:'/file/getUrl',
	    method:'post',
	    data:data
	})
}